package com.yq.api.service;

import com.yq.api.comm.ResultHandle;
import com.yq.api.dto.ProductTO;
import com.yq.api.qto.ProductQueryTO;

import javax.ejb.Local;
import java.util.List;

/**
 * Created by zhouyanqun on 2016/8/12.
 */
@Local
public interface ProductServiceFacade {
    /**
     * 添加产品
     * */
    ResultHandle<ProductTO> addProduct(ProductTO productTO);

    /**
     * 根据id查询产品
     * */
    ResultHandle<ProductTO> getProductByProductId(Long productId);

    /**
     *
     * */
    ResultHandle<List<ProductTO>> getProducts(ProductQueryTO productQueryTO);
}
